package com.flyweight.impl;

import com.flyweight.face.Flyweight;

/**
 * 实现了元类中的操作，而且可能会提供一个用于保存内部状态(共享属性)的空间
 * 
 * @author dell
 * 
 */
public class ConcreateFlyweight extends Flyweight {

	private Object key;

	public ConcreateFlyweight(Object key) {
		this.key = key;
	}

	@Override
	public void operation() {
		System.out.println("key:" + key);
	}

}
